package com.common.displayObjects
{
	import flash.geom.Rectangle;
	
	//规定大小的容器
	public class ComponentChildren extends Component
	{
		public function ComponentChildren(_w:Number, _h:Number)
		{
			scrollRect = new Rectangle(0, 0, _w, _h);
			super();
		}
		
		public function resize(_w:Number, _h:Number):void
		{
			scrollRect = new Rectangle(0, 0, _w, _h);
		}
		
		override public function set width(value:Number):void
		{
			//无效方法， 无返回值， readOnly
		}
		override public function get width():Number
		{
			return scrollRect.width;
		}
		
		override public function set height(value:Number):void
		{
			//无效方法， 无返回值， readOnly
		}
		override public function get height():Number
		{
			return scrollRect.height;
		}
	}
}